package com.xdb.sqlparser.dialect.oracle.ast.statement;

import com.xdb.sqlparser.ast.statement.SQLConstraint;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;

public class OracleAlterTableAddConstaint extends OracleAlterTableItem {

	private SQLConstraint constraint;

	@Override
	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, constraint);
		}
		visitor.endVisit(this);
	}

	public SQLConstraint getConstraint() {
		return constraint;
	}

	public void setConstraint(SQLConstraint constraint) {
		this.constraint = constraint;
	}

}
